﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Demo.Web.Mvvm;

namespace Demo.WebApp
{
    public partial class CustomerDetails : System.Web.UI.Page
    {
        [Create(Scope=CreateScope.Session)]
        public CustomerController controller { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request["id"];
            if (!string.IsNullOrEmpty(id))
            {
                controller.SelectCustomer(id);
            }
        }
    }
}